#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <time.h>

int main(int argc, char**argv)
{
    struct stat st;
    int re = stat(argv[1], &st);
    if(re == -1)
    {
        perror("stat error:");
        return -1;
    }
    
    //char*p = ctime(&st.st_mtime);
    //printf("p = %s\n", p);
    //struct tm *tm = localtime(&st.st_mtime);

    //printf("%d\n", tm->tm_yday);
}